package com.pearl.generator.service;

import com.pearl.generator.pojo.request.GeneratorCodeRequest;
import com.pearl.generator.pojo.request.PreviewCodeRequest;

import java.util.Map;

/**
 * @author TangDan
 * @version 1.0
 * @since 2022/8/8
 */
public interface GeneratorCodeService {

    /**
     * 生成代码
     *
     * @param generatorCodeRequest 参数
     */
    void generator(GeneratorCodeRequest generatorCodeRequest);

    /**
     * 预览生成文件
     *
     * @param request 参数
     * @return 代码
     */
    Map<String, String> preview(PreviewCodeRequest request);

}
